STEP 8: The dino's moon weight is stored in the new return variable, so let's display that value!

  • From drag out Variable Display and rename the display dino_moon_display.
  • Change the variable argument in .Display() from my_var to dino_moon_weight.
  • Place the display at (100, 100).

We can see that the T-Rex only weighs 2129.6 pounds on the moon! Remember, that's 16% of its weight on earth!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)